package com.ht.aems.fesmonitor.actions.comm;

import com.ht.aems.fesmodel.CommUnit;
import com.ht.aems.fesmonitor.FesMonitor;
import com.ht.aems.swing.util.MyAction;

import java.awt.event.ActionEvent;

/**
 * Created by IntelliJ IDEA.
 *
 * @author Dong Shufeng
 *         Date: 2008-7-19
 */
public class StartAll extends MyAction {
    public void actionPerformed(ActionEvent e) {
        FesMonitor monitor = (FesMonitor) this.getAncestor();
        for (CommUnit unit : monitor.getCommUnits()) {
            monitor.startComm(unit);
        }
    }
}
